package com.xp.framework.server;

import com.xp.framework.Config;
import com.xp.framework.MySerializer;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author xuecx
 * @Date 2019/4/30 15:02
 */
public class ServerConfig implements Config {

    private int port;
    private MySerializer serializer;


    private Map<String,String> ref=new HashMap<>();

    public int getPort() {
        return port;
    }

    public ServerConfig setPort(int port) {
        this.port = port;
        return this;
    }

    public MySerializer getSerializer() {
        return serializer;
    }

    public ServerConfig setSerializer(MySerializer serializer) {
        this.serializer = serializer;
        return this;
    }

    public Map<String, String> getRef() {
        return ref;
    }

    public ServerConfig setRef(Map<String, String> ref) {
        this.ref = ref;
        return this;
    }
}
